/**
 * 
 */
package com.cosmetics.groupware;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.SqlMapClientTemplate;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author dreams
 *
 */
@Service
@Transactional
public class HomeServiceImpl implements HomeService {
	
	@Autowired
	private SqlMapClientTemplate sqlMapClientTemplate;
	
	public void list(Map modelMap, Command command){
		modelMap.put("qList", sqlMapClientTemplate.queryForList("sample.query1"));
		modelMap.put("group", command.getGroup());
		modelMap.put("type", command.getType());
	}
}
